

/*var speed=100;
var scrollingRegion=80;
var startPosition=0;
var messag="Zedy Imob-Clean - imobiliare si curatenie, Sibiu! Contacteaza-ne acum la 072324545! ";
function mainTextScroller() {
	if($("div.midmenu")){
		var mes = messag;
	    leng = mes.length;
	    var reduced1 = mes.substring(0,(scrollingRegion-startPosition));
		var reduced2 = mes.substring((scrollingRegion-startPosition)+1,mes.length);
		var reduced = reduced2+reduced1;
		startPosition = startPosition+1;
		
		if(startPosition>=scrollingRegion) startPosition=0;
		
		$("div.midmenu").html(reduced);
		setTimeout("mainTextScroller()",speed);
	}
}


function showHideAll(stt){
	stt = 'div'+stt;
	$('#content div').each(function(index) { $(this).hide() });
	$('#'+stt).show();	
}

function set(id) {
	document.getElementById(id).value = id;
}

function admin_clicks(id, nr, nume) {
	$('#'+id).show('fast');
	for(i = 0; i<nr; i++) {
		if( id != nume+i ) 
			$('#'+nume+i).hide('fast');
	}
}	
function showHide(id_div) {
	if(!document.getElementById(id_div).style.display) 
		document.getElementById(id_div).style.display="none";
		
		if(document.getElementById(id_div).style.display=="none") {
			document.getElementById(id_div).style.display="block"; 
		 } else if(document.getElementById(id_div).style.display=="block" || 
		 	document.getElementById(id_div).style.display=="inline") 
		 	document.getElementById(id_div).style.display="none"; 
}
*/